package com.enlink.didu.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 角色功能权限表-IDEA
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
public class IdeaRoleMenu extends Model<IdeaRoleMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "role_menu_id", type = IdType.AUTO)
    private Integer roleMenuId;

    /**
     * 功能ID
     */
    private Integer menuId;

    /**
     * 角色ID
     */
    private Integer roleId;


    public Integer getRoleMenuId() {
        return roleMenuId;
    }

    public IdeaRoleMenu setRoleMenuId(Integer roleMenuId) {
        this.roleMenuId = roleMenuId;
        return this;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public IdeaRoleMenu setMenuId(Integer menuId) {
        this.menuId = menuId;
        return this;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public IdeaRoleMenu setRoleId(Integer roleId) {
        this.roleId = roleId;
        return this;
    }

    public static final String ROLE_MENU_ID = "role_menu_id";

    public static final String MENU_ID = "menu_id";

    public static final String ROLE_ID = "role_id";

    @Override
    protected Serializable pkVal() {
        return this.roleMenuId;
    }

    @Override
    public String toString() {
        return "IdeaRoleMenu{" +
        "roleMenuId=" + roleMenuId +
        ", menuId=" + menuId +
        ", roleId=" + roleId +
        "}";
    }
}
